﻿<?xml version="1.0" encoding="utf-8" ?>
<Page xmlns="http://www.baojiansoft.com/schemas/dynamicpage" ObjectId="ExtensionFieldMetadataManagement" Type="BaoJianSoft.ExtensionModel.Web.DynamicPage.ExtensionFieldMetadataManagement, BaoJianSoft.ExtensionModel.Web">
	<Title>$Resources.ExtensionModel.ExtensionFieldMetadataManagement, BaoJianSoft.Web$</Title>
	<PermissionValue>ExtensionFieldMetadataManagement.$ExtensionDataTypeName$</PermissionValue>
	<Panels>		
		<ButtonPanel Id="ButtonPanelExtensionFieldMetadataManagement$ExtensionDataTypeName$" ButtonAlignment="Left">
			<Button CommandArgument="New" Type="NewImage" ToolTip="$Resources.ExtensionModel.AddField, BaoJianSoft.Web$" />
			<Button CommandArgument="Preview" Type="CustomImage" ImageUrl="/resources/images/view.gif" ToolTip="$Resources.ExtensionModel.Preview, BaoJianSoft.Web$" />
		</ButtonPanel>
		
		<GridViewPanel Id="GridViewPanelExtensionFieldMetadataManagement$ExtensionDataTypeName$"
			HeaderText="$Resources.ExtensionModel.AllFields, BaoJianSoft.Web$"
			EntityName="$Resources.ExtensionModel.Field, BaoJianSoft.Web$"
			EnabledCheckBoxField="true"
			PageSize="999"
			PrimaryKeyFieldName="Name"
			DefaultSortField="Ordinal"
			DefaultSortDirection="ASC">
			<ViewButton />
			<EditButton />
			<DeleteButton />
			<Fields>
				<Field FieldName="Name" HeaderText="$Resources.ExtensionModel.FieldName, BaoJianSoft.Web$" />
				<Field FieldName="Type" HeaderText="$Resources.ExtensionModel.FieldType, BaoJianSoft.Web$">
					<Transform-Switch>
						<Case Value="String">$Resources.ExtensionModel.String, BaoJianSoft.Web$</Case>
						<Case Value="DateTime">$Resources.ExtensionModel.DateTime, BaoJianSoft.Web$</Case>
						<Case Value="Integer">$Resources.ExtensionModel.Integer, BaoJianSoft.Web$</Case>
						<Case Value="Decimal">$Resources.ExtensionModel.Decimal, BaoJianSoft.Web$</Case>
						<Case Value="Enumeration">$Resources.ExtensionModel.Enumeration, BaoJianSoft.Web$</Case>
						<Case Value="Hierarchy">$Resources.ExtensionModel.Hierarchy, BaoJianSoft.Web$</Case>
					</Transform-Switch>
				</Field>
				<Field FieldName="Inherited" HeaderText="$Resources.ExtensionModel.Inherited, BaoJianSoft.Web$">
					<Transform-Switch>
						<Case Value="True">$Resources.ExtensionModel.Yes, BaoJianSoft.Web$</Case>
						<Case Value="False">$Resources.ExtensionModel.No, BaoJianSoft.Web$</Case>
					</Transform-Switch>
				</Field>
				<Field FieldName="Ordinal" HeaderText="$Resources.ExtensionModel.Ordinal, BaoJianSoft.Web$" />
				<RowView FieldName="Description" />
			</Fields>
		</GridViewPanel>
		
		<DetailPanel Id="DetailPanelExtensionFieldMetadataManagement$ExtensionDataTypeName$" HeaderText="$Resources.ExtensionModel.FieldProfile, BaoJianSoft.Web$" ShowMessageAfterSavedSuccessfully="false">
			<Type>BaoJianSoft.ExtensionModel.Web.DynamicPage.ExtensionFieldMetadataDetailPanel, BaoJianSoft.ExtensionModel.Web</Type>
			<SkinPath>~/Templates/ExtensionModel/FieldMetadata.ascx</SkinPath>
			<SaveButton />
			<CancelButton />
		</DetailPanel>

		<AggregatePanel Id="AggregatePanelExtensionFieldMetadataManagement$ExtensionDataTypeName$" HeaderText="$Resources.ExtensionModel.Preview, BaoJianSoft.Web$" ShowMessageAfterSavedSuccessfully="false">
			<Type>BaoJianSoft.ExtensionModel.Web.DynamicPage.ExtensionFieldMetadataAggregatePanel, BaoJianSoft.ExtensionModel.Web</Type>
			<SkinPath>~/Templates/ExtensionModel/FieldMetadataPreview.ascx</SkinPath>
			<CancelButton Text="$Resources.ExtensionModel.Close, BaoJianSoft.Web$" />
		</AggregatePanel>
	</Panels>
</Page>